//
//  ZCBasePresenter.h
//  xfb
//
//  Created by Fearless on 2021/10/21.
//  Copyright © 2021 XFB. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZCBasePresenter<E> : NSObject
{
    // MVP中负责更新的视图
    __weak E _view;
}

/// 初始化
/// @param view 要绑定的视图
- (instancetype)initWithView:(E)view;

/// 绑定视图
/// @param view 要绑定的视图
- (void)attachView:(E)view;

/// 解绑视图
/// @param view 要解绑的视图
- (void)deleteAttachView:(E)view;

@end

NS_ASSUME_NONNULL_END
